package com.ruan.mapper;

import com.ruan.entity.Address;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author 59499
* @description 针对表【address】的数据库操作Mapper
* @createDate 2023-09-18 21:15:58
* @Entity com.ruan.entity.Address
*/
@Repository
public interface AddressMapper extends BaseMapper<Address> {

    int insertUserAddress(@Param("userId") String userId,@Param("addressId") Integer id);

    List<Integer> getAddressIdsByUserId(String userId);
}




